DELETE = 'DELETE'
POST = 'POST'
GET = 'GET'
NAME = 'name'
HUBBLE_USER_ID = '_id'
ID = 'id'

HOST = 'JINA_FINETUNER_REGISTRY'
HUBBLE_REGISTRY = 'JINA_HUBBLE_REGISTRY'
DEFAULT_FINETUNER_HOST = 'https://api.compute.finetuner.fit'
DEFAULT_HUBBLE_REGISTRY = 'https://api.hubble.jina.ai'

CONFIG = 'config'
FINETUNER_VERSION = 'finetuner_version'
DEVICE = 'device'
CPUS = 'cpus'
GPUS = 'gpus'
NUM_WORKERS = 'num_workers'
RUNS = 'runs'
STATUS = 'status'
LOGS = 'logs'
LOGSTREAM = 'logstream'
METRICS = 'metrics'
EXAMPLES = 'examples'
EXPERIMENTS = 'experiments'
API_VERSION = 'api/v1'
AUTHORIZATION = 'Authorization'
CHARSET = 'Accept-Charset'
UTF_8 = 'utf-8'
TEXT = 'text'
TOKEN_PREFIX = 'token '
DATA = 'data'
TRAIN_DATA = 'train_data'
EVAL_DATA = 'eval_data'
VAL_SPLIT = 'val_split'
EVALUATE = 'evaluate'
ARTIFACTS_DIR = 'artifacts/'
MODEL = 'model'
MODEL_OPTIONS = 'model_options'
MODEL_ARTIFACT = 'model_artifact'
ARTIFACT = 'artifact'
ARTIFACT_ID = 'artifact_id'
DEFAULT_TAG_KEY = 'finetuner_label'
DEFAULT_TAG_SCORE_KEY = 'finetuner_score'
# Run status
CREATED = 'CREATED'
STARTED = 'STARTED'
FINISHED = 'FINISHED'
FAILED = 'FAILED'
DEFAULT_EXPERIMENT_NAME = 'default_experiment'
CREATED_AT = 'created_at'
DESCRIPTION = 'description'
FREEZE = 'freeze'
OUTPUT_DIM = 'output_dim'
MULTI_MODAL = 'multi_modal'
IMAGE_MODALITY = 'image_modality'
TEXT_MODALITY = 'text_modality'
HYPER_PARAMETERS = 'hyper_parameters'
LOSS = 'loss'
LOSS_OPTIONS = 'loss_options'
OPTIMIZER = 'optimizer'
LOSS_OPTIMIZER = 'loss_optimizer'
LOSS_OPTIMIZER_OPTIONS = 'loss_optimizer_options'
SAMPLER = 'sampler'
MINER = 'miner'
MINER_OPTIONS = 'miner_options'
BATCH_SIZE = 'batch_size'
LEARNING_RATE = 'learning_rate'
EPOCHS = 'epochs'
EXPERIMENT_NAME = 'experiment_name'
RUN_NAME = 'run_name'
OPTIMIZER_OPTIONS = 'optimizer_options'
SCHEDULER = 'scheduler'
SCHEDULER_OPTIONS = 'scheduler_options'
CALLBACKS = 'callbacks'
OPTIONS = 'options'
QUERY_DATA = 'query_data'
INDEX_DATA = 'index_data'
DA_PREFIX = 'finetuner-dastorage'
ONNX = 'to_onnx'
PUBLIC = 'public'
NUM_ITEMS_PER_CLASS = 'num_items_per_class'
VAL_SPLIT = 'val_split'
TASK = 'task'
TRAINING_TASK = 'training'
SYNTHESIS_TASK = 'generation'
# Synthesis job
RAW_DATA_CONFIG = 'data'
RELATION_MINING = 'relation_mining'
CROSS_ENCODER = 'cross_encoder'
QUERIES = 'queries'
CORPUS = 'corpus'
MODELS = 'models'
NUM_RELATIONS = 'num_relations'
TRAIN_DATA = 'train_data'
MAX_NUM_DOCS = 'max_num_docs'
HF_URL_PREFIX = 'https://huggingface.co/jinaai/'
HF_ORG_PREFIX = 'jinaai/'
